<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
                <title>个人信息-品购网</title>
                <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/person.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/personmessage.js"></script>
	</head>
	<body>
	   <div class="containner">
        <include file="Index:header"/>
        <!--导航结束--> 
		<div id="myshare" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
			<div id="regeditDiv" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
			<div class="body-center">
<!--			<div class="path">
				首页 >> 个人页面 >> 用户信息
			</div>-->
                        <div class="w_tithead"> <strong>您当前的位置是： </strong><a href="__APP__">品购网首页</a><a  href="#">个人信息</a>用户信息</div>
			<div class="person_title">个人信息</div>
			<div class="contents">
				<div class="menu">
					<include file="User:user_menu"/>
				</div>
				<div class="content" style="border:none;padding:0px;">
					<div class="personmessage">
						<ul style="float:left;">
							<li style="float:left;">
								<div class="">
									<div class="personhead">
										<img src="{$user_info.user_photo|default='__ROOT__/Public/images/user_photo.jpg'}"  width="143" height="141">
                                                                                
									</div>
										<div class="btns" style="text-align:center;float:left;width:75px;">
										<a id="updatepersonal2" href="#" hidefocus class="bluebtn" stye="text-decoration:none">更换头像</a>
										</div>
										<div class="btns" style="text-align:center;float:left;width:75px;">
										<a id="updatepersonal1" href="#" hidefocus class="bluebtn" stye="text-decoration:none">修改密码</a>
										</div>
										<ul style="text-align:left;clear:left;">
										<!--	<li>积分：<span class="yellow">{$user_info.score}</span></li>    -->
											<li>收藏信息：<span class="yellow">{$favorites}</span></li>
<!--											<li>评论信息：<span class="yellow">25</span></li>-->
										</ul>	
								</div>
							</li>
							<li style="float:left;width:200px">
								<ul class="messagelist">
									<li>
										<span class="blue">{$user_info.user_name}</span>
									</li>
<!--									<li>
										<span>等级：品购新人</span>
									</li>-->
									<li>
										<span>身份：<eq name="user_info.username" value="1">商家用户<else/>个人用户</eq></span>
									</li>
									<li>
										已发表<span class="yellow">{$user_info.question_count}</span>条提问
									</li>
									<li>
										已发表<span class="yellow">{$user_info.share_count}</span>条分享
									</li>
									<li>
										关注了<span class="yellow">{$user_info.user_flow}</span>人
									</li>
									<li>
										被关注<span class="yellow">{$user_info.flow_user}</span>人
									</li>
								</ul>
							</li>
						</ul>
					</div>
					<!--<div class="persontabs">
						<div class="tab" >
							<ul  id="tab">
								<li class="on" tabcontent="online">在线调查</li>
								<li tabcontent="adlink">广告链接</li>
								<li tabcontent="webmessage">网站信息</li>
							</ul>
					    </div>
					    <div style="padding:5px;">
							<div id="online" class="persontabcontent" style="display:block;">
								<p class="blue questionhead">你曾经都“忍不住”做了些什么？</p>
								<ul id="radioOrChecked" class="questionlist">
									<li><input type="radio" name="a" value="1">理解理解理解理解理解理解理解</li>
									<li><input type="radio" name="a" value="2">可惜理解理解理解理解理解理解</li>
									<li><input type="radio" name="a" value="3">飘理解理解理解理解理解理解</li>
									<li><input type="radio" name="a" value="4">理解理解理解理解理解理解理解</li>
									<li><input type="radio" name="a" value="5">理解理解理解理解理解理解理解</li>
									<li><input type="radio" name="a" value="6">理解理解理解理解理解理解理解</li>
									<li><div class="btns" style="text-align:left;">
										<a id="toupiao" href="#" hidefocus class="bluebtn caina" stye="text-decoration:none">投票</a>
										</div></li>
								</ul>
							</div>
							<div id="adlink" class="persontabcontent" >
								<ul id="adlist" class="adlist">
									<li class="blues"><a href="#" target="_blank">1asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">2asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">3asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">4asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">5asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">6asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">7asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">8asdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">9a9sdfasdfd</a></li>
									<li class="blues"><a  href="#" target="_blank">10asdfasdfd</a></li>
								</ul>
							</div>
							<div id="webmessage" class="persontabcontent">
								<ul id="newslist" class="newslist">
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻1</a></li>
									<li class="blues webmessageopen"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻2</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻3</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻4</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻5</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻6</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻7</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻8</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻9</a></li>
									<li class="blues webmessageclose"><a  href="#" target="_blank">新闻新闻新闻新闻新闻新闻10</a></li>
								</ul>								
							</div>
						</div>						
					</div>  -->
				</div>
			</div>
			</div>
         </div>
	     <include file="Index:bottom" />
         <!--页尾部分-->	
		 </div>
		 </div>
	</body>
</html>
<script>
function bindRegedit(){
	$("#updatepersonal2").click(function(){
		var height = window.screen.availHeight;
		var width = window.screen.availWidth;
		//$("body").append("<div id=\"shraw\" class=\"opacity\" style=\"background:gray;position:absolute;left:0; top:0;width:"+width+"px;height:"+height+"px\"></div>");

		$("#regeditDiv").load("__APP__/Home/User/showUpdateUser/","",function(data){
			var s = $("#regeditDiv");
                        s.css("left",width/2-680);
			s.css("top",height/2-340);
			initRegeitPanel();
		});
	});
	$("#updatepersonal1").click(function(){
		var height = window.screen.availHeight;
		var width = window.screen.availWidth;
		//$("body").append("<div id=\"shraw\" class=\"opacity\" style=\"background:gray;position:absolute;left:0; top:0;width:"+width+"px;height:"+height+"px\"></div>");

		$("#regeditDiv").load("__APP__/Home/User/showUpdate/","",function(data){
			var s = $("#regeditDiv");
                        s.css("left",width/2-250);
			s.css("top",height/2-240);
			initRegeitPanel();
		});
	});


}

//初始化注册
function initRegeitPanel(){
	//确定按钮
	$("#submit_update").click(function(){
		var sel = checkRegedit();
		if(sel){

			var oldpsd = $("#oldpsd").val();
			var psd = $("#psd").val();
			var psd2 = $("#psd2").val();
                        $("form")[0].submit();
			close();
		}
	});
	$("#cancel_update").click(close);
	function close(){
		$("#regeditDiv").empty();
		$("#submit_update").unbind();
		$("#cancel_update").unbind();
		//$("body").get(0).removeChild($("#shraw").get(0));
	}
}
</script>

